#include "File.h"

File::File(){};

File::File(std::string loc){
	location = loc;
	initialize();
};

void File::initialize(){
	//path=
	//fileName=
	//extensions=
}

void File::setLocation(std::string loc){
	if(location.empty()){
		location = loc;
		initialize();
	}
}

std::string File::getLocation(){
	return location;
}

void File::open(){
}

void File::rename(std::string name){
	//  ^(.*?)([^/\\]*?)(\.[^/\\.]*)?$
}

void File::move(std::string location){
}


File::TypeFile File::type(){
	return File::OTHER;
}

std::string File::getPath(){
	return path;
}

std::string File::getFileName(){
	return fileName;
}

std::string File::getExtension(){
	return extension;
}

File::~File(){};